﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Radiation___IM.Commands
{
    public class Help : ICommand
    {
        private readonly string m_commandkey = "help";

        public Help()
        {
        }

        public string commandKey()
        {
            return m_commandkey;
        }

        public string requiredPermission()
        {
            return null;
        }

        public void execute(string[] command_parts, Client client)
        {
            MessageExecution.sendDataMultiple(client, new string[] { " This is the help of this server . Allowed commands : ",
                            "   /nick [new nickname] - change your nickname",
                            "   /whoami - to get your current nickname on the server",
                            "   /channel [option] - (more information with the /channel help command)",
                            "   /login [username] [password] - log in",
                            "   /register [password] - Create an account with your current",
                            "                          nickname and the specified password",
                            " End of help"});
        }
    }
}
